package com.mdd.admin.vo.recharge;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Map;

/**
 * @author kn4im3
 * @date 2023/3/7 11:38
 */
@Data
public class RechargeOrderListVo implements Serializable {
    private static final long serialVersionUID = -7033720554316494416L;
    private Long id;
    private String sn;
    private String nickname;
    private String avatar;
    private BigDecimal amount;
    private Integer payWay;
    private Integer payStatus;
    private String payWayDesc;
    private String payStatusDesc;
    private String createTime;
    private String payTime;

    public void setPayWayDesc(Integer payWay) {
        switch (payWay) {
            case 1:
                this.payWayDesc = "微信支付";
                break;
            case 2:
                this.payWayDesc = "余额支付";
                break;
            case 3:
                this.payWayDesc = "支付宝支付";
                break;
        }
    }

    public void setPayStatusDesc(Integer payStatus) {
        switch (payStatus) {
            case 0:
                this.payStatusDesc = "待支付";
                break;
            case 1:
                this.payStatusDesc = "已支付";
                break;
        }
    }
}
